<?php

namespace Blog\PostBundle\Entity;

/**
 * @orm:Entity
 * @orm:Table(name="type")
 */
class Type {
    /**
     *
     * @orm:ID
     * @orm:Column(type="integer")
     * @orm:GeneratedValue(strategy="AUTO")
     */
    protected  $id_type;
    /**
     *
     * @orm:Column(type="string", length="100")
     */
    protected $nom_type;

    /**
     * @orm:OneToMany(targetEntity="Post", mappedBy="type")
     */
    protected $posts;

    function __construct(){
        $this->posts = new \Doctrine\Common\Collections\ArrayCollection();

    }

    public function getId_type() {
        return $this->id_type;
    }

    public function getNom_type() {
        return $this->nom_type;
    }

    public function setNom_type($nom_type) {
        $this->nom_type = $nom_type;
    }

    public function getPosts() {
        return $this->posts;
    }

    public function setPosts($posts) {
        $this->posts = $posts;
    }



}

?>
